//
//  ZDBActivityTableViewCell.m
//  ZDB
//
//  Created by Kk on 2020/3/19.
//  Copyright © 2020 ZDB. All rights reserved.
//

#import "ZDBActivityTableViewCell.h"
#import "ZDBVideoPlayerViewController.h"
@implementation ZDBActivityTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
 
    KViewRadius(_bgView, 4);
    _bgView.backgroundColor = WHITECOLOR;
   self.selectionStyle = UITableViewCellAccessoryNone;
}
- (void)getDataWithcellForRowAtIndexPath:(NSIndexPath *)indexPath;
{
    if (indexPath.row==0) {
        _taskName.text = @"做任务赚积分";
        NSString * str = @"任务列表领取任务，完成后可获得现金和积分奖励";
        _taskContent.attributedText = [ZBDUnit finderattributedString:str attributedString:@"现金和积分" color:MAINCOLOR font:AutoBoldFont(11)];
        [_lookTaskBtn add_BtnClickHandler:^(NSInteger tag) {
             [ZBDUnit currentViewController].navigationController.tabBarController.selectedIndex = 0;  //
        }];
    }else if (indexPath.row==1)
    {
       _taskName.text = @"看广告赚积分";
        NSString * str = @"观看广告，广告结束后，可获得20-88积分奖励";
        _taskContent.attributedText = [ZBDUnit finderattributedString:str attributedString:@"20-88" color:MAINCOLOR font:AutoBoldFont(11)];
     
        
    }

}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
